STEP 2: Let's define the function that will create our invitation!

Later, we'll change the background image to fit our card.

  • Go to and drag Define Function with Parameters into your program.
  • Change the name of the function to draw_card.
  • Go to and drag Set Background inside the function so that it has a ···· in front of it.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)